export default class WsNetwork{
    private  ws: WebSocket;
    private  wsUrl = BASE_URL + "/ws/notice";
    
    createConnect(userId:string){
        this.ws = new WebSocket(this.wsUrl + "/" + userId);
        this.ws.onopen = this.onOpen;
        this.ws.onclose = this.onClose;
        this.ws.onerror = this.onError;
        this.ws.onmessage = this.onMessage;
    }

    onOpen(){

    }

    onClose(){

    }

    onError(){

    }

    onMessage(){
        
    }
}